﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Imaginarium.jobs;
using Imaginarium.XML;

namespace Imaginarium.Factorys
{
    public class jobFactory
    {
        private static Hashtable loadedSkills = new Hashtable();

        public static Job getJobById(int jobId)
        {
            Job ans = null;
            ans = (Job)loadedSkills[jobId];
            if (ans == null)
            {
                ans = XmlLoader.loadJob(jobId);
                loadedSkills.Add(jobId, ans);
            }

            return ans;
        }
    }
}
